package mock;

public class Parfum {

	private String name;
	private int volumeInCm3;
	
	public Parfum(String name, int volumeInCm3) {
		if (name == null) {
			throw new NullPointerException("name must not be null");
		}
		if (volumeInCm3 <= 0) {
			throw new IllegalArgumentException("volumeInCm3 must be a positive value");
		}
		this.name = name;
		this.volumeInCm3 = volumeInCm3;
	}

	public String getName() {
		return name;
	}

	public int getVolumeInCm3() {
		return volumeInCm3;
	}
	
}
